$(function() {
    
    //fancy box
    $(".detalle").fancybox({
        'width'		        : '75%',
        'height'	        : '100%',
        'autoScale'     	: false,
        'transitionIn'		: 'none',
        'transitionOut'		: 'none',
        'type'			: 'iframe'
    });
    
    //Calendario
    $( "#a_fecha" ).datepicker({
        dateFormat: "dd-mm-yy",
        changeMonth: true,
        changeYear: true,
        dayNamesMin: [ "Do", "Lu", "Ma", "Mi", "Ju", "Vi", "Sa" ],
        monthNamesShort: [ "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" ],
        beforeShow: function(input, inst)
        {
            $.datepicker._pos = $.datepicker._findPos(input); //this is the default position
            $.datepicker._pos[0] = 100; //left
            $.datepicker._pos[1] = 100; //top
        }

    });
    
});